added third problem solved