Exercise5: Now working

Offset was wrongly calculated.