Added fitting sine wave functions in a module.