adding basic index class with GET function