This is basic code which works as follows: