Fix types of the result variables you start with

When solving the exercises during your talk, I got confused twice by a wrong type or generic type in the starting code.

This pull request fixes both the exercises as well as the solution file in case the latter gets used to regenerate the former.

Thanks again for the fine hands-on!