Fixed problem 19. Added framework for problem 20