Added a more organized version of ex5
Added a more organized version of ex5