Moving code to separate files - Window and Edge3D