Add subsequnce pattern

Signed-off-by: thisisforivy <thisisforivy@gmail.com>