Initial client code and simple bot