Solution to converter classes exercise.