LinearStage class added.