solution for hw 6 6212663