working on proportion's solution