Simple examples of design patterns using PHP