Commit the finished third problem of ps5.