Added variables and ternary operator

Added three vars and one ternary operator. Printed to console to test.