An agent based model of a simple banking system