Added setLocation function inside Location.java