Flipping the mathematics classroom: affordances and motivating factors