the primary purpose of an operating system is