An Object-Oriented Approach for Control-System Design