in the docs you can sync a list of a struct can you do this with a class? if so can you give me an example?