Creating transformations for structures and calling them in programs