Moved the methods　that are in unsuitabale class.
Removed unneccesary method.
Removed unnecceary line.
Added 2 testcases CubeTest class.