Sample design patterns implementation