functional model in iot