added ternary to last homework problem

ternary to check if you are old enough to view the content