fixed the problem to store the data. The problem was in the non-recursive put method.
Added contains method (and tested). Next step is adding delete method. Moreover, think about having a T() static and final for the class, then we do not have to create one every time