definition of class and function was added.