new way to create slim object in lastest version 2