ADAPTED code to location class