reformat the relationship between classes