cleaning code and creating submission