update to assignement 4 and engine