add class method example