Starting problem 10
first attempt at problem 10
fixed a casting issue, everything else was correct, problem 10 done.