Can you give me the steps necessary and the full code to implement it?