All Errors fixed as code works