added a coordinates class to help with coordinates
updated return function in class
finished coordinates class (nearly)