worked on answer page, needs ruby code