check solution for hw 4