Add "new" function for creating objects