Lab 2 not throwing exception