what are the components of operating system? how it works? its structure?