Need help with Arduino Joystick Code

Hi Guys,

I am a complete beginner when it comes to coding/programming so basically, I have no idea what I'm doing. I am trying to create Sim Racing Pedals using the Arduino Nano. The code I am using seems to have a few issues when I try and verify it using Arduino IDE 1.6.6. More specifically, the issue is that ' 'Joystick' was not declared in this scope'. As I have no clue what this means, I haven't the faintest idea of how to fix it. I have googled how to fix this but haven't found a solution. Simply I am asking for some assistance in fixing the code that would be great. I have included the full list of code below plus a link towards 'Instructables' where I found the project.

website with project tutorial:

Coding that is provided:

Please note that I have added a folder to the Arduino libraries that contains the file 'Joystick.h'.

Thanks for your help!