Added code and output