Changed class Location to struct Location