close #16 by accepting strings and using the parse method