hw3 problem definition