class compiling is not happening in the correct directory