Adds final code. Adds sample output