created a Location class for future convience and converted square to use it