init() and drawRedRectangle() functions description