HW2 - loading txt files version