hw 3 coding done.