One to many relationship by code

Here is a good start: