using System.Collections.Generic;
public Car(int id, string name, int year){
public void AnnounceNewCar(){
Console.WriteLine($"a new car happened! It has an Id of: {this.Id} and we call it {this.Name}!");
public static void Main()
var car0 = new Car(22, "Firestorm", 1990);
var car1 = new Car(54, "Popo", 2007);
var car2 = new Car(1, "Speedy", 2015);
var car3 = new Car(1, "Also Speedy", 2018);
var car4 = new Car(22, "Firestorm2", 2002);
var carList = new List<Car>(){
var sortedCars = carList.OrderByDescending(x => x.Year).ToList();
foreach(var car in sortedCars){
Console.WriteLine($"{car.Id}: {car.Name}");