using self for class mathod