fleshed out the program more - now takes input and constructs dataframes