hw 3 code