This is correct, but hard to read. Code formatting and readability is a key professional trait.