added function.C which goes in ..