Simplify the class creation
Another speedup
Print number of terms