All the code worked out, and moved it to comment format to get ready to write the ternary for the code.