add uniqueness validating in rspec
change coding style following by ruby-style-guide