Simple chat implementation for a college assignment