new.pim function

Create an object of class pim