Added function fitting example.