Not sure if how I handled the caret addition in line 24 is right.