write lab5 client