finish problem a part 3