Completed the simple version