Started HW#5

copied HW4 format and changed functions