Completed assignment6