Below is an instruction that describes a task. Write a response that appropriately completes the request in Swahili. Please answer in Swahili.

### Instruction:
When the schools were opened for the new year, Hendrix's class had 20 new students. However, at the end of the school year, 1/3 of the students in Hendrix class had transferred to other schools. If the number of students that were in Hendrix's class before 20 new students joined was 160, calculate the number of students that were in the class at the end of the year.

### Response:
 Kabla ya 1/3 ya wanafunzi katika darasa kuhamia shule nyingine, idadi ya wanafunzi iliongezeka hadi 160+20=<<160+20=180>>180
Idadi ya wanafunzi waliohamia kutoka shule ni 1/3*180 = <<180*1/3=60>>60
Jumla ya wanafunzi waliobaki shuleni mwishoni mwa mwaka ni 180-60 = <<180-60=120>>120