power method added to x class