Add: homework 6 exercise 3