composition and delegation in java