started coding the processing of incoming patterns