changed the constructor to a method, allowing us to return the hash table easier