First attempt, ex10 solution 1
Checks for ex10