defined Coordinates class and started working on HP model