quick cooked up version. Still working on it.