what is a pet used for