can define methods on components directly