Implemented the methods