Define colored function before using it

Fixes issue #6