Homework 7 (final homework) for ISTA 352