Classify the following Python code as a function or a class.
import math

class Circle:
   def __init__(self, radius):
      self.radius = radius

   def area(self):
      return math.pi * self.radius**2
Class