Initial commit of stage1 implementation