Reformatted code, thanks CLion