updated for assignment 3.
updated for assignment 3.