Sample design pattern implementations