adds changes from section 6 exercises