patterns in New Basic