Convert dictionary to classes

:cow: