Adding basic functionality to a child component