added solution of ex03
(finally)