Some design pattern aide-memoire code