implemented populate and wrote another test