Changed foreign keys

Explicitly instantiated foreign keys and pointers