Split code to objects