week6 (needs hash table implementation)