sample code picked from my private git repository