How to add the observer which fires when we ship the order and invoice ?

Hi Friends,

I just want to add the observer which give the status which add the status of order, so anyone know how to add the observer of events i.e after shipment and after invoice has created ?