Corrected the problem. I was creating the object but missing the link of
the object beacuse in the apply method there was no "=" sign. Now it is
calling the overridden toString method perfectly fine.