Adding classes Address and Coord, moving functions into the classes.