Separate function of each class