Adding sample code from demo day app