added weight, changed attributes to doubles