made Note a constructor