Made Position class to handle (x,y) coordinates