write an OS by hand