Functions Wacky

ternary added