Implemented the assignment.