a simple class started from ifelse