added problem 5
dummy implementation of problem 6