implemented the get_lead_by_id() and get_leads() functions, and associated unit tests