Fixing use of implementation class instead of interface
Adding generic toString() method for persisted objects