Creating your own transformer