Implemented undefined identifiers. This completes hw3.