Updated inter/1 prompt with personal goal.
Encapsulated code into functions.