change ds from array to hashmap & Point class added