Beta Function and its Applications