writing simple os in C