This is the code that I´ve done myself or according to other tutorials on the internet.