Include de call of method define_pattern() in the constructor method