Add memory manage code. Draw a coordinate system on which there are a sin function and a cos function.
Improve structure.