Funtion to initialize a simple error pattern