Add end to 4th math statement