Convert modules to prototype based classes