Examples simples about desing patterns in php