Cleaned up sine.cpp