sequence class