curve() function examples