Please add also the onCommand method to the code provided.