Demo code

Demo code & newer code from Xiao's repo.