added parser.cpp but it's not functioning correctly