added simple map code.