fixed diagrams in problem 3