Problem 005 solved and commented