uploading completed assignment2
Added comments to solution