draft 2

added covariance and put self.r in __init__