added problem 5 for 13/9/2014