change test code, reffer to chapter 5
remake bin
finish layout and routes
use shared_example in rspec
remove deplicated code