wrapping previous code into a bundle and a service