I want to built a web-application(Chat System), where student can interact directly with teachers. But within student to student, there must be some strict rules which student cant disobey. There should be two types of Register Student and Teacher. im not confused with the codes, please get me some algorithm and or the networking part .. Thank you.