new function now uses . notation rather than :, can take a table and default missing values, x and y can be negative to specify distance from end