// File: exercise3.cpp
// Advanced exercise: Define a class and use it

#include <iostream>
using namespace std;

// Define a simple class
class Rectangle {
private:
    int width, height;
public:
    // Constructor
    Rectangle(int w, int h) {
        width = w;
        height = h;
    }
    
    // Function to calculate area
    int area() {
        return width * height;
    }
};

int main() {
    // Create an object of Rectangle class
    Rectangle rect(5, 10);
    
    // Print the area
    cout << "Rectangle Area: " << rect.area() << endl;
    
    return 0;
}