Trying to solve the convert() puzzle.
Trying creating Chain class