write a small os