projects & algorithms contstructors refactor