# Mulan's Daydream
<h3>Data Model of My Life 5003 - Mulan Fu</h3>
```:javascript=
//Hi!
let mulan = {
name: "Mulan Fu",
energy: 5,
}
//Mulan has random thoughts throughout the day.
let randomThought = [
"transparent cats",
"fruits",
"fruitflies dancing waltz",
"unicorn that eats spicy rice cakes",
"three-legged flamingo"
];
//Her doodles come to life with magic sometimes.
let doodle = {
alive: false,
number: 0,
//The doodled creatures are based on her current random thought
creature: ["A cyberpunk " + randomThought[0]]
}
let workTime = 0;
//She doodles as she works as an animator...
function animate(gig){
workTime+=2;
energy--;
doodle.number++;
}
//Magic happens when she works too long!
//The doodles come to life and Mulan regains energy🏃♀️!
function magic(){
if workTime ≥ 8
then
doodle.alive = true;
randomThought.shift();
workTime = 0;
energy = 5;
}
animate(commercial);
animate(logo animation);
animate(gif design);
animate(animated film);
magic();
//She's been working for 8 hours, magic appears!
sleep();
```