complete the parse function and add some class for it