Added signatures etc. for ring functions ass2