Server Class and global function