best practices for writing apex classes in salesforce | APPSeCONNECT