Added solution to the attendance problem.