Jasdeep's code (maps api)