Question: what is the difference between of and in?
Answer: In these cases, in and of are interchangeable. Of relates to being a part of something, in relates to a group somebody is in. If you think of Argentina, the class and the USA, these are places, which also can be interpreted as entities, giving a reason why both prepositions can be used.