tip calculation implemented.