[DONE] added client code