Scaling - initial draft 

Marek please review the code
Line is too long. [130/80]<br>Redundant curly braces around a hash parameter.<br>Space inside { missing.<br>Space inside } missing.