Critical thinking approach to beginning algebra