completed problem 19. my algorithms were correct, i had to re-read what they were asking