added a first 'draft' of ecc. Probably the implementation gets changed again.