added sample views code