completed another toy problem