How to create a sequence