Fixed ruby style code