MEAN sample code