Arranged the code and removed whitespaces