Split code and demo