add mail.rb and library.rb