Refactor stundenplan.rb

Move code into a class and include sample invocation.