add code for library project
add code for library_spec.rb
add finished library.rb code