Adding given classes and methods required.