How to store multiple on/off states into a single integer | Hacker News Reader