somewhat hacky solution for problem 2
readme