finished ex 1 lab3