started implementing memory