Adding functionality to an existing object