hw3 passing all required tests