Added have_many and belong_to. Fixed missing }