second attempt at rails