started ex5
added some code to ex1