dysfunctional encapsulation of functions...argh.

Really not sure what I'm doing wrong here...help.