Code for charlie's blanky app