weighted averages proof of concept