Smart structures with smart functions