Text this: Distributed methods for resource allocation - a passivity-based approach