Converted vector code to project style