Partially implemented scenario 7,8. Implemented scenario 9