Fix for #18, added getCoordinates() to way for testing purposes