Update library.rb

Only two classes, the best I could make it with my current Ruby skills.