Add pattern Template method