Fixed small typo and added account class

Hello,

I added a small account class to try out and extend your code.
Let me know if there's stuff that you would have done differently.

Small note: I had to change the imports in the opsource.rb file to make it import things correctly (I'm using ruby 2.0)

Regards,
Stijn