remove todo
add generateAgeStat
change average to double
add comment