Forgot to add ex3.18 solution