function TokenVault(uint _freezeEndsAt, StandardToken _token, uint _tokensToBeAllocated) {

    owner = msg.sender;

    
    if(owner == 0) {
      throw;
    }

    token = _token;

    
    if(!token.isToken()) {
      throw;
    }

    
    if(_freezeEndsAt == 0) {
      throw;
    }

    
    if(_tokensToBeAllocated == 0) {
      throw;
    }

    freezeEndsAt = _freezeEndsAt;
    tokensToBeAllocated = _tokensToBeAllocated;
  }