changed shutdown,reboot methods to use the define_method in example code