corrected syntax errors and changed list to hold doubles so it could hold the NAN when a value is not given when constructed