finished first 2 parts of ex5