using doubles instead of integers……