Programs using the class function