I get this problem:
main.cpp:13:20: error: ‘GetGrade’ was not declared in this scope
 GetGrade(examGrade);

My code:

main.cpp

```
#include "examGrade.hpp"

int main(int argc, char* argv[])
{
    //Qt Application
    QApplication app(argc, argv);

    QFont font("DejaVu Sans", 18);

    ExamGradeInput* examGrade = new ExamGradeInput();
    examGrade->setFont(font);

    GetGrade(examGrade);
    QLabel* label = new QLabel("&Exam grade: ");
    label->setFont(font);
    label->setBuddy(examGrade);

    QHBoxLayout* layout = new QHBoxLayout();
    layout->addWidget(label);
    layout->addWidget(examGrade);

    //Create and display window 

    QWidget* window = new QWidget();
    window->setWindowTitle("Exam grade Window");
    window->setLayout(layout);
    window->show();
    return app.exec();
}

```

examGrade.cpp

```
#include "examGrade.hpp"

ExamGradeInput::ExamGradeInput(QWidget* parent): QSpinBox(parent)
{
    this->setRange(0, 100);
}

int GetGrade(ExamGradeInput* examGrade){

    int grade = (examGrade->text()).toInt();
    return grade;
}

```

examGrade.hpp

```
 #pragma once
 #include <QtWidgets>

 //exaGradeInput inherits from public QSpin Box
 class ExamGradeInput: public QSpinBox
 {
     public: 
        ExamGradeInput(QWidget* parent = 0);
        int GetGrade(ExamGradeInput* examGrade);
 };

```

not entirely sure were I have gone wrong, new to C++ and Qt, been doing it for around a week. 

Thanks in advance