method added into a class