sequence class extends stackable