Implement split functions

Create demo