Implemented functions in class OS.