university assignment coded from scratch using ror and bootstrap