Instincts, Learning & Flexible Behavior