text: 
  
  class Rakett {
      constructor(m, x, y) {
          this.p = createVector(x, y);
          this.v = createVector(0, 0);
          this.a = createVector(0, g);
          this.m = m;
      }
    
      tegn() {
          square(this.p.x, this.p.y, 30);
      }
  
      oppdater(a) {
          this.v.mult(0.99);
          this.v.add(a);
          this.p.add(this.v);
          square(this.p.x, this.p.y, 30);
          if (this.p.y > 300) {
              this.p.y = 300;
              this.v.mult(1, -1);
   
          }
      }
      }