Inspired by Tsoding's ball example in his linear algebra repo