How to use the implementation class with the interface class