Use Python's OO features.