Organize constructor.
Create a "invalid formula" exception.