Since this is a local class anyway, it may make sense to simply define its methods within. Saves on boilerplate.