implement law of demeter