homework 2+3+4

homeworks 2-4 to be reviewed