PHP Objects and Patterns examples