finished extra credit problem