to square {
    forward 30;
    right 90;
    forward 30;
    right 90;
    forward 30;
    right 90;
    forward 30;
};
to triangle {
    forward 30;
    right 45;
    forward 30;
    pencolor 1;
};


//forward 50;

forward 40;
left 30;
right 20;
backward 30;
hideturtle;
repeat 2 {
  repeat 2 {
    penup;
    forward 20;
    pendown;
  };
};
square;
triangle;
showturtle;
clearscreen;
pencolor 5;
pendown;