How do you find the amplitude and period of the function?