add part3 code to the app