added user input trace functionality, along with results of 4 test cases