object-oriented interface; better maintainability