Scaling - initial draft 

Marek please review the code
Line is too long. [92/80]<br>Space missing to the left of {.<br>Space missing inside }.