ClientApp& ClientFunction

implemented the error control and modularity of client function