Write code for every possible scenario