solved problem 12, added problem 1 code
solved problems 13 and 14