lab 9 and some tidies