Second commit

Defined a method for easier use, and now takes user input which is
stored in text files.