Not an example of good code, just trying to figure some stuff out