lab4 upload

this is the code I turned in, not really my best work.