Made class abstract and added constructor.