Create contrast.c

not ready yet. still has errors to get fixed