Combined Function and Object into one class.