added examples for if, for, functions
example for apply (same as mentioned in lesson 01)