Computational investigations of feedback, memory, and attention