Complete example of using supervisors