Created callback interface which holds all the methods needed to be implemented.