primary classes diagram