anything containing business-logic belongs in the models (would you think differently had I created a super-class and derived from it)? lib/ is for non-model code, such as interfaces to external systems.