Solution to d