finished ex3.3