solutions for homework two 816418