Problem 009 solved and commented