fixing nomalloc version of ex16 and adding explanations