homework 6 for micro 479659