Flash class implementation