Refactor: paquete Pattern