usando lifecycle callbacks
cap2 ok