Code for question6 included, errors in question5 adressed