added code for service and controller.
adding files