Problem 19 solved and tested