what are the 2 types of diagram