homework2 for the xsede paralell training course.