Add existing code from Ruby course

Needs major re-work and implementation of non-existing methods.