New class transformer with less IIFE