start of convert challenge
fix for exercise 6, convert.