Code Working (Probably sum bugs)