rectangle factory renamed
move some algorithm for the model to the model
move solution calculation to model project
fixed