converting everything to coordinate class