tweaks to vapply and tapply lesson