logic which manages the behavior of data, its state, and responds to instructions to change state.