finish proj3 task 1-3