examples/user_details_spec.rb added, refactoring