Here is a goal: how to hold nails to make them easily accessable

How would you accomplish this goal?
Put a magnet on to hold nails