committing sample code from demo