Added implementation for three functions
Added Implementation and Removed Unwanted Code.