Introduction to Frame Analysis : First and Second Order Theories