Add pattern Class