introducing rails like associations, reflections and relations