Latest work

It is still pretty ugly, but at least with an integration test it seems to be doing its part.
I just copy pasted an example. I have no prior knowledge in ruby, so I do not know at all what the recommended way of doing things is. I just assumed that even if I did not like it maybe there was a reason for it.