Added part a for part 3