sum type of way

sum type of way