homework 3 with lin ind