Added conditional coding for Personal

Added conditional coding for personal. Also met the ternary operator
requirement.