Homework 4 (full)