finished up to ex3 of lab4