Implicit conversion to case classes

wrong spacing around comma. consider renaming `tree` (what tree??)