modular pattern example