adding statefullness to fragments lab