how to define multiple functions within our extension