Smart materials and their applications