functional model diagram