Use OO for os instead of enum