added Z calculation

Doesn't really.... work