code test part 1, scenario 2