architecture now similar to lecture example. validation works but takes long.