switch from if conditional to a ternary for movie ticket price