Novel material automatically changes shape and strength