Scaling - initial draft 

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