intermediate step hw3