Problem4 and Problem5 added