#17 Rewrite the code to encapsulate everything into one variable