SECURED PROMISSORY NOTE AND SECURITY AGREEMENT