user mode and kernel mode examples