Initial commit of incomplete and buggy code.