finished excercise 2 of lab3