hw03 code