private void ExecuteRateSong(string[] commandWords) { ISong song = this.media.FirstOrDefault(s => s is ISong && s.Title == commandWords[2]) as ISong; if (song != null) { song.PlaceRating(int.Parse(commandWords[3])); this.Printer.PrintLine("The rating has been placed successfully."); } }