added week4 codes