assignment 2, C-client