Using technologies to teach mathematics