implemented supply and demand slopes