midterm project v.2

modified codes