Testing the helper function(incomplete). Updated some missing logic.
Looks like the interestOps(int) function doesn't behave how I expected.