encapsulate cin cout tool