add guard
add rspec
add model rule