code for System Programming Laboratory