Problem #9: fix bug with negative 'c'