graphics library works, added a rectangle function for testing purposes