myrottenpotatoes implementation for HW2