implemented my-take and my-drop functions