Functions implemented

I have implemented the required functions using the provided template