copied and tested two files from lab04