recreation of @freddykybear's pnm model | ScratchStats