finished lab6, working