Added lib/dock.rb and spec dock_spec.rb