os homework base on orange's code