wrote tests for both original and old code to ensure functionality is kept. Completed removal of extending from a hashMap