When the boring stuff is connected to practical applications, it is easier to teach it. Also, making the exercise more concrete could help. In a few words, I would say that one should more a little bit away from the abstract fashion and it could work better.