Finished ternary

I learned how to shortcut