Finished the attendance problem