second chapter demo application