Dialog example code added