third problem solved
fourth problem statement added