A system is a group of interacting or interrelated elements that act according to a set of rules to form a unified whole.