added problem 12
finished problem 14