writing new communication class