solved up to exercise 13 from text-files