modified Angular sample