implemented cursor, memory editing and calling