class.erb and routes set up