added Locations class to manage position better