This is my finished g grade work in websocket