merged some code from HW6part1 example code
index on staging: ea11533 merged some code from HW6part1 example code
WIP on staging: ea11533 merged some code from HW6part1 example code
submit 6part1