Half solved the 6. exercise, type annotations doesn't work.