Added property methods to the Function class, and added a Gradient class.