generated Hero controller and added methods to it from scratch