Snapshot after ML homework 3