Add interact function

Added process interaction function named interact