Converted Ruby Style according to BBatsov Style-Guide