Commented homework 4