Creating pattern