Program 2 and cleaning up