also instantiate nested objects from json