add logic to Location class