add keyboard input to lecture 10