what is the main purpose of an operating system