add assignment2 text document, edit to js