rants and code
HOW TO IMPLEMENT STATES