Create hw3_extended.R