Followed Ruby Style code