spec for defining multiple functions