lecture example for FB programming