Program now takes input data from user.