refactoring project class instantiate with dictonaries