Mathemagic : an adaptive remediation system for mathematics