Teaching by example through case studies