initial code for ex3