add function to calculate bmi