Attention And Memory An Integrated Framework