Creating complex patterns