better pattern class methods
test pattern class methods
working user-defined pattern example