Reformatted structure, revised problem structure to align to dictionary syntax. Added tests. Changed variables for clarity. Error still throwing on line 18. Work in progress.