Uses a HashMap to store object (temporarily)