added functions angle_calculation() and cosine_law()