fixed method: using putDouble since putNumber is not working.

Also added the required import.