idea of using generics as <E extends Number> failed