print pattern