Initial implementation of transform_range

Added an initial implementation of transform_range