Program now inputs from text file