changed assignment operator on line 23 to equality.