Code from RoR classes in BCN