added definitions file and main file