Implement patterns
Add prelude.rb
Add some prelude functions