c/s mode simple program