Implemented Assignment VI with 4 extra credits