HW

Finished function