Created Required Functionality code