new version for hw6
added analytics