added unit test
added prod func & unit test it