Wrote A2 as far as possible without input files. Need to test 1,3,4,5,6 and write 2 once input files are given.