spike code for cs 414 mp1