Replace class name by self keyword