complete part A and B