basic decorator vs. inheritance example