Completed structure for the conditional

The problem is ready for debugging and finish comments.