3rd year ruby on rails assignment