So I am implementing a rudimentary Hotel booking system with a check in and check out method. For the check in and check out selections, I have a switch statement that allows the user to pick a room by selecting a number. I have a truncated version of the code below, as the case statement pretty much are similar in nature:

```
case 1:
        if (true)//this is supposed to check if the room is booked
        {
             Console.WriteLine("This room is already booked, please try another place");
         }
        else
        {
           var instance1 = new BookingMethods();
           instance1.bookRoom1();
           revenueGenerated += 100; 
         }
        break;

```

For the if statements, I'm trying to check if the rooms are booked or not, and I have created objects in another class along the methods for checking in and out. Below is how I did this:

```
class BookingMethods
{
    Room room1 = new Room();

    public void bookRoom1()
    {
        //code for generating ints
        room1.occupied = true;
        room1.numGuests = guests1;
        room1.daysBooked = staying1;
        room1.roomType = "luxury";
    }
}

```

I want the if statement to be able to read `room1.occupied` for the condition, but I can't seem to be able to reference it correctly. I have `bookRoom1()` in my `BookingMethods.cs` from the case statement, which is in my `Program.cs`. I figured I don't have to move my `Room` object from `BookingMethods.cs` to `Program.cs` to do this, and I haven't been able to figure out a way to call it.