Should financial stability considerations be added into monetary policy rules? How prudential regulation must adjust to the emergence of shadow banking? Are bailouts a think of the past? My researches will examine these questions and in addition will develop a novel agent-based multi-layered model of the interbank market with endogenous credit risk formation mechanisms. The model will allow banks to exchange funds through unsecured and secured transactions in order to facilitate the owner of funds to the most profitable investment projects.