improvied program to ask for input