Create origin.m

Added code and comments.