Implemented problem 13.
Added problem 14.
implemented problem 14.