create __construct() code