Teaching mathematics using Massive Open Online Courses