Adding problem 7 def.