added method for extracting tens