initial commit of functional code