Implementation of pattern