I had dinner with my friends. I had an excellent time.
Good work! In this context, we usually remove the article 'a' and just say "I had dinner with my friends." You could also say "I had an excellent time" rather than "very great." This phrasing sounds a little more natural in American English.