lab1 code finished