How to work with digital patterns