Added demo2()

A new function demo2 is added.