HW1:task2:removed extra 'this->', changed invertStack(), compute()