Added functions

Added twoWayPrint function