part 5 and added missing Q in part 2