Initial attempt at Rweave solution to in-lab challenge