example of using unions
confusing inheritance