Added calcFib method