How to Create and Deploy a Secure Smart Contract?