Create factor.py

example function withbarguments