Think input is working
Implemented shrinking dictionary