Fixed errors

See [**this commit**](https://github.com/IonicaBizau/calc_rectangle/commit/0a1a951bdfb18737a166b1f1e13fe298cbaa0815).