move the embed to a separate class