Adds Fn method for function creation