Extracted both a get_x_coordinates method and a get_in_between_frames method