updated rectangle class to work with spec file