added a class called object, to generalize the map objects and give them co-ordinates