add interactive code for user input