The formation is legal. As it fulfills all the requirements in the first post.