implemented client rest class