Add code for coordinate class