Created outline for the function