Adding function to call Maps.java