Add constructors to user-defined classes