A small Exercise I completed in Rails