the first question has been done for part B