added the projects_dir variable as a class parameter