combined exercises so far into one script