In this talk we report on the adoption of Dafny for teaching a second-year course on Logic and Set Theory to computer science students.