homework1 for HTM246 course