beginning to write code to spacially plot nn