adding command pattern.
adding operating system class.