Implemented Function and simple d-cube