Add method and class practice