starting work on client code
Untested client logic done