task3 with first simulink statechart and histogram