ex11 with user input