added a function and a class (Not Compilable)