system programming example