HW6 implemented
Format