clean up patterns and user input
expanded the second tutorial