Basic flow implementation

Should also take self as argument.