exercise 2.12
added user prompt to 2.12, did 2.13