Implement reading the data from a file

a few of the test statements are completed as well