now able to get input from user and display it in a neat format