Problem 5 & 6 added