Attempt following hartl\s book