Example usage of Function creation