added separate working example