Text this: Failure of materials in mechanical design