Functions_personal changes added: Ternary