Shortened ex5, solved ex6
exercises 7-10 done (a bit ugly maybe...?)