Factored out Unary and Binary Functions