Learning and animal behavior: exploring the dynamics of simple models