Edited code for scenarios 10, 11