This demo was inspired by this reddit post