Added basic validation and unit testing (prefer RSpec though)