In Class Assignment 3

Training and sampling