corrected to compile from command line