added volatile / logging examples