Solution 3
Answer 3 added