Complete ex3

Submitted