Task6 with Server