Implementation examples of GOF design patterns