added toString for slave class