Added code and updated with question