double should be used instead of integer for calculation line 108
double should be used instead of integer for calculation line 108