Solved problem 128 and 146