Tis just a silly mistake. I forgot to include new Server and Chat objects. Silly me.