Execises of different code to apply patterns (for teaching)