added @ready flag on lesson 5 to wait for texture