Reformatted code and removed whitespaces