Rails basics and some models