take input from user and display it