this commit implements the beer api class