implemented lab8