copied initial design from rails repositiory