Creating a protect enabled loan contract