added initial function for parsing classes