Program updated to fulfill assignment 2 requirements.