Code examples for teaching in IT and programming classes