implemented Problem#parse()