Update (Working version) Now i need to clean up…