modify fFunction. Add Constants class.