3d solution

3d solution