Added exercise #40