Refactor ex3.69