[code style] added example for controller and service