Replaced Hashtable with Hashmap for purchases