finished part3 and 4