In the code on the slides, LaTeX replaces ' with ยด - pay attention if copying code from slides.
Snet