Implemented the programming assignment.