Nicer formatting in ex1, also cleaning up vars at the end.