ex 5 basic code done