added tests to problem 19
solved problem 19