added new 3d demo and modified the old one