Implemented two functions..