A cognitive-apprenticeship-based environment for learning word problem solving