Add function for inserting into the hashmap