first attempt at logic and added images of xes and os