finished part1 of lab3