Change def keyword to method.