register key exercise

Modified