OS: added class for OS abstraction